//
//  LullabyItemCell.m
//  SleepingElf
//
//  Created by karong on 2023/10/13.
//

#import "LullabyItemCell.h"

@interface LullabyItemCell ()
@property (weak, nonatomic) IBOutlet UIButton *playBtn;
@property (weak, nonatomic) IBOutlet UIButton *durationBtn;
@end

@implementation LullabyItemCell
- (void)setDataWithObject:(MusicModel *)object {
    [super setDataWithObject:object];
    [self.durationBtn setTitle:object.duration forState:(UIControlStateNormal)];
    self.playBtn.selected = [[PlayerManager shared]musicIsPlaying:object];
}
@end
